package com.panda.business.mapper;

import com.panda.business.domain.DeviceStateInfo;
import com.panda.business.domain.req.DeviceStateInfoVo;
import com.panda.framework.domain.base.DBPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DeviceStateMapper {
	
	List<DeviceStateInfo> queryDeviceStateInfo(@Param("page") DBPage page, @Param("info") DeviceStateInfoVo info);

	Integer queryDeviceStateInfoCount(@Param("page") DBPage page, @Param("info") DeviceStateInfoVo info);

	DeviceStateInfo findDeviceStateInfoByid(@Param("id") Integer id);

	Integer getPhoneAllCountByCid(@Param("cid") Integer cid);

	void insert(DeviceStateInfo info);

	void update(DeviceStateInfo info);

	void binding(@Param("id") Integer id, @Param("accountid") Long accountid, @Param("did") Long did);

	void updateLoginTime(@Param("deviceid") String deviceid);
}
